package com.jade.yh.zsy.mobile.common.api;

import com.jade.framework.base.util.ResponseUtils;
import io.swagger.annotations.Api;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletResponse;
import java.util.HashMap;
import java.util.Map;

/**
 * 客户端设置
 * User: Administrator
 * Date: 2016-4-14
 * Time: 20:49
 * Version : 1.0
 * Remark:
 * History:setting/version.do
 */
@RestController
@RequestMapping(value = "/setting", produces = MediaType.APPLICATION_JSON_VALUE)
@Api(value = "APP参数", description = "APP管理--会员管理")
public class AppSettingController {
    @RequestMapping(value = "/version.do")
    public void version(HttpServletResponse response)  throws Exception {
        Map resultMap = new HashMap();
        resultMap.put("status", "200");
        resultMap.put("desc", "107");
        resultMap.put("title", "智胜导购V1.0.5");
        resultMap.put("size", "10035");
        resultMap.put("versionCode", "版本大小 9.9M");
        resultMap.put("versionName", "最新版本 v1.0.5");
        resultMap.put("message", "修改收银错误");
        resultMap.put("appUrl", "http://bi01.cn/zsy/app_latest.apk");
        ResponseUtils.writeSuccessResult(response, resultMap);
    }
}
